package cn.zwt.wolf.domain.sync;

import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhangwt on 16-3-4.
 */
@Entity
@Table(name = "sync_queue")
@Proxy(lazy = false)
public class SyncQueue implements Serializable {
    public static int QUEUE_DELE = -1;

    public static int COLLECT_STATUS_FINISH = 1;
    public static int COLLECT_STATUS_INITIAL = 0;
    public static int COLLECT_STATUS_ERROR = -1;

    public static String COLLECT_RESULT_ADD = "1000";
    public static String COLLECT_RESULT_UPDATE = "1001";
    public static String COLLECT_RESULT_ADD_MEDIA = "2000";
    public static String COLLECT_RESULT_ADD_EPISODE = "3000";
    public static String COLLECT_RESULT_UPDATE_EPISODE = "3001";
    public static String COLLECT_RESULT_NOTHING = "0000";

    public static String COLLECT_ERROR_RESULT_NERWORK_NOT_CONNECTION = "9999";

    final public static int ENTER_STATUS_FINISH = 1;
    final public static int ENTER_STATUS_INITIAL = 0;
    final public static int ENTER_STATUS_ERROR = -1;

    final public static String ENTER_RESULT_ADD = "1000";
    final public static String ENTER_RESULT_UPDATE = "1001";
    final public static String ENTER_RESULT_ADD_MEDIA = "2000";
    final public static String ENTER_RESULT_ADD_EPISODE = "3000";
    final public static String ENTER_RESULT_UPDATE_EPISODE = "3001";
    final public static String ENTER_RESULT_NOTHING = "0000";
    final public static String ENTER_RESULT_PROGRAM_EMPTY = "9000";
    final public static String ENTER_RESULT_RUN_ERROR = "9999";
    final public static String ENTER_RESULT_PROGRAM_VERIFY_FAIL = "9001";

    final public static int PUBLISH_STATUS_FINISH = 1;
    final public static int PUBLISH_STATUS_INITIAL = 0;
    final public static int PUBLISH_STATUS_ERROR = -1;

    final public static String PUBLISH_RESULT_ADD = "1000";
    final public static String PUBLISH_RESULT_UPDATE = "1001";
    final public static String PUBLISH_RESULT_ADD_MEDIA = "2000";
    final public static String PUBLISH_RESULT_ADD_EPISODE = "3000";
    final public static String PUBLISH_RESULT_UPDATE_EPISODE = "3001";
    final public static String PUBLISH_RESULT_NOTHING = "0000";
    final public static String PUBLISH_RESULT_PROGRAM_EMPTY = "9000";
    final public static String PUBLISH_RESULT_RUN_ERROR = "9999";
    final public static String PUBLISH_RESULT_PROGRAM_VERIFY_FAIL = "9001";

    final public static int PUBLISH_POSITION_STATUS_FINISH = 1;
    final public static int PUBLISH_POSITION_STATUS_INITIAL = 0;
    final public static int PUBLISH_POSITION_STATUS_ERROR = -1;

    final public static int PUBLISH_ARRANGE_STATUS_FINISH = 1;
    final public static int PUBLISH_ARRANGE_STATUS_INITIAL = 0;
    final public static int PUBLISH_ARRANGE_STATUS_ERROR = -1;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @Column(name = "externalContentType")
    String externalContentType;

    @Column(name = "contentType")
    String contentType;

    @Column(name = "queueContentId")
    String queueContentId;

    @Column(name = "externalId")
    String externalId;

    @Column(name = "contentName")
    String contentName;

    @Column(name = "contentId")
    int contentId;
    @Column(name = "message")
    String message;

    @Column(name = "status")
    int status;

    @Column(name = "collectStatus")
    int collectStatus;

    @Column(name = "enterStatus")
    int enterStatus;

    @Column(name = "publishStatus")
    int publishStatus;

    @Column(name = "batchNum")
    String batchNum;

    @Column(name = "insertTime")
    Date creatTime;

    @Column(name = "enterTime")
    Date enterTime;

    @Column(name = "executeTime")
    Date updateTime;

    @Column(name = "publishTime")
    Date publishTime;

    @Column(name = "type")
    int type;

    @Column(name = "position_status")
    int positionStatus;

    @Column(name = "arrange_status")
    int arrangeStatus;

    @Column(name = "content_sid")
    String contentSid;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getExternalContentType() {
        return externalContentType;
    }

    public void setExternalContentType(String externalContentType) {
        this.externalContentType = externalContentType;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getQueueContentId() {
        return queueContentId;
    }

    public void setQueueContentId(String queueContentId) {
        this.queueContentId = queueContentId;
    }

    public String getExternalId() {
        return externalId;
    }

    public void setExternalId(String externalId) {
        this.externalId = externalId;
    }

    public String getContentName() {
        return contentName;
    }

    public void setContentName(String contentName) {
        this.contentName = contentName;
    }

    public int getContentId() {
        return contentId;
    }

    public void setContentId(int contentId) {
        this.contentId = contentId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(int collectStatus) {
        this.collectStatus = collectStatus;
    }

    public int getEnterStatus() {
        return enterStatus;
    }

    public void setEnterStatus(int enterStatus) {
        this.enterStatus = enterStatus;
    }

    public int getPublishStatus() {
        return publishStatus;
    }

    public void setPublishStatus(int publishStatus) {
        this.publishStatus = publishStatus;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }



    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getPositionStatus() {
        return positionStatus;
    }

    public void setPositionStatus(int positionStatus) {
        this.positionStatus = positionStatus;
    }

    public int getArrangeStatus() {
        return arrangeStatus;
    }

    public void setArrangeStatus(int arrangeStatus) {
        this.arrangeStatus = arrangeStatus;
    }

    public String getContentSid() {
        return contentSid;
    }

    public void setContentSid(String contentSid) {
        this.contentSid = contentSid;
    }
}
